package com.kongyz.demo1;

import com.kongyz.demo1.shape.Shape;

/**
 * @author kongyz
 * @date 2018/6/28 22:38
 * @Description: 形状的装饰器
 */
public abstract class ShapeDecorator implements Shape {

    protected Shape decoratedShape;

    public ShapeDecorator(Shape decoratedShape) {
        this.decoratedShape = decoratedShape;
    }

    public void draw(){
        decoratedShape.draw();
    }
}
